package main

import (
    "github.com/gogf/gf/frame/g"
    "github.com/gogf/gf/os/glog"
    "laihe/proxy/client"
    "laihe/proxy/server"
)

func main() {
    g.Config().SetFileName("config.toml")
    mode := g.Config().Get("mode")
    if mode == "server" {
        server.Run()
    } else if mode == "client" {
        client.Run()
    } else {
        glog.Error("模式设置错误，模式：server/client")
    }
}
